#include<bits/stdc++.h>
using namespace std;
double f(double x,double n);
int main()
{
    double x,n;
    cin>>x>>n;
    cout<<fixed<<setprecision(2)<<f(x,n)<<endl;
    return 0;
}
double f(double x,double n)
{
    while(n>=1)
	{
        if(n==1) return x/(x+1);
        else return x/(n+f(x,n-1));
    }
}
